import request from '../../utils/Request'

export const saveDict = data => {
    return request({
        method: 'post',
        url: '/api/platform/dict/save',
        data: data
    })
}
export const createDict = data => {
    return request({
        method: 'post',
        url: '/api/platform/dict/create',
        data: data
    })
}
export const updateDict = data => {
    return request({
        method: 'post',
        url: '/api/platform/dict/update',
        data: data
    })
}

export const selectDictByCode = dictCode => {
    return request({
        method: 'get',
        url: '/api/platform/dict/select/code/' + dictCode,
        params: {}
    })
}

export const deleteDict = bId => {
    return request({
        method: 'get',
        url: '/api/platform/dict/delete/' + bId,
        params: {}
    })
}

export const listDict = data => {
    return request({
        method: 'get',
        url: '/api/platform/dict/list',
        params: data
    })
}

export const mapDict = code => {
    return request({
        method: 'get',
        url: '/api/platform/dict/map',
        params: {}
    })
}





